-- GENERATED SPELL FOR [Time Watcher] --


function spell0_19918(pUnit, Event) --@Time Cloak,Self--
pUnit:FullCastSpellOnTarget(34699,pUnit)
pUnit:RegisterEvent('Sorts_19918', 631, 1)
end

function spell1_19918(pUnit, Event) --@Time Cloak,Self--
pUnit:FullCastSpellOnTarget(34702,pUnit)
pUnit:RegisterEvent('Sorts_19918', 631, 1)
end

function Sorts_19918(pUnit, Event)
local choix_sorts_19918 = math.random(0, 1)
if choix_sorts_19918 == 0 then
pUnit:RegisterEvent('spell0_19918', 1, 1)
end
if choix_sorts_19918 == 1 then
pUnit:RegisterEvent('spell1_19918', 1, 1)
end
end

function mob19918_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19918', math.random(1500, 3000), 1)
end

function mob19918_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19918_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19918_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19918, 1, 'mob19918_Action')
RegisterUnitEvent(19918, 2, 'mob19918_Leave')
RegisterUnitEvent(19918, 3, 'mob19918_Kill')
RegisterUnitEvent(19918, 4, 'mob19918_Die')
